home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Nave / Monkey Lander.swf / scripts / frame_93 / PlaceObject2_422_562 / CLIPACTIONRECORD onClipEvent(enterFrame).as
Encoding:
Text File  |  2006-06-13  |  421 b   |  20 lines

  1. onClipEvent(enterFrame){
  2.    if(_root.lives < 3)
  3.    {
  4.       if(_root.lives == 2)
  5.       {
  6.          this.gotoAndStop("two");
  7.       }
  8.       else if(_root.lives == 1)
  9.       {
  10.          this.gotoAndStop("one");
  11.       }
  12.       else if(_root.lives < 1 and _root.gameOver != true)
  13.       {
  14.          this.gotoAndStop("zero");
  15.          _parent.gotoAndPlay("gameOver");
  16.          _root.gameOver = true;
  17.       }
  18.    }
  19. }
  20.